package IMIC.NGUYENCONGHUY.ARRAY.BAITAP1;

public class Model {
	public int TimTT(double[] myArray){
		int icountTtb = 0;
		int icountDtb = 0;
		for(int i = 0; i < myArray.length; i++ ){
			if(myArray[i]>=5){
				icountTtb ++;
			}
			else
			{
				icountDtb ++;
				return icountDtb;
			}
		}
		return icountTtb;
	}
}
